import { useState } from 'react'

export default function App() {
  const [count, setCount] = useState(0)
  const [num, setNum] = useState(18)
  /* if(true) {
    useState(18)
  } */
  /* for(let i = 0; i < 1; i ++) {
    useState(18)
  } */
  /* function fn() {
    useState(18)
  } */
  useState({})
  return (
    <div>
      <p>
        count: {count}
        <button onClick={() => setCount(count + 1)}>+1</button>
      </p>
      <p>
        num: {num}
        <button onClick={() => setNum(num + 1)}>+1</button>
      </p>
    </div>
  )
}
